import {Component} from '@angular/core';
import {NavController, ModalController} from 'ionic-angular';
import {StoragePage} from "../storage/storage";
import {KcmodelPage} from "../ckmodel/kcmodel";

@Component({
    selector: 'management',
    templateUrl: 'management.html'
})
export class ManagementPage {
    showAlert = true;

    constructor(public navCtrl: NavController, public modalCtrl: ModalController) {

    }

    presentProfileModal() {
        let profileModal = this.modalCtrl.create(KcmodelPage, {userId: 8675309});
        profileModal.present();
    }

    toShowAlert() {
        this.showAlert = false;
    }

    btnCancel() {
        this.showAlert = true;
    }

    btnChoose() {
        this.showAlert = true;
        this.navCtrl.setRoot(StoragePage);
    }

    chuku() {
        this.navCtrl.setRoot(StoragePage);
    }

}
